<script src="<?= base_url(); ?>third_party/ckeditor/ckeditor.js"></script>


<div class="heading-buttons">
	<h3 class="glyphicons no-js comments"><i></i> News Management</h3>
	


</div>
<div class="separator"></div>
<div class="widget widget-2 widget-body-white finances_summary">
	<div class="widget-head">
		<h4 class="heading glyphicons no-js comments"><i></i> News</h4>
	</div>
	<div class="widget-body">
		<div class="row-fluid">
	 <form name="banner" method="POST" action="<?= base_url(); ?>news/admin/admin_news/update_news">
                       
                <table class="table table-condensed" >
				
				
                                        
                                       <?php
                                            $this->session->flashdata('message'); {
                                                $msg = $this->session->flashdata('message');
                                                echo '<font color="red">' . $msg . '</font>';
                                            }
                                            ?>
                
				<tbody>
					<tr>
						<td class="left">Title</td>
						<td>
						<input name="title" type ="text" value="<?= $newsrow['info']->title; ?>" class="span12" ></td>
					</tr>
					<tr>
						<td class="left">Meta Title</td>
						<td>
					<input name="meta_title" type ="text" value="<?= $newsrow['info']->meta_title; ?>" class="span12"></td>
					</tr>
					<tr>
						<td class="left">Meta Keyword</td>
						<td>
					<input name="meta_keyword" type="text" value="<?= $newsrow['info']->meta_keyword; ?>" class="span12"></td>
					</tr>
					<tr>
						<td class="left">Meta Description</td>
						<td>
					    <textarea name="meta_description" class="span12" ><?= $newsrow['info']->meta_description; ?></textarea></td>
					</tr>
					<tr>
						<td class="left">Description</td>
						<td>
					  <textarea id="news_details" name="news_detail"><?= $newsrow['info']->description; ?></textarea>
                        <script type="text/javascript">
                            CKEDITOR.replace( 'news_details',
                            {
                                skin : 'v2',
                                enterMode : CKEDITOR.ENTER_BR,
                                toolbar :
                                    [
                                    [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
                                    [ 'UIColor' ]
                                ]

                            });
                        </script></tr>
					
					<tr>
						<td class="center"></td>
						<td>
					        <input type="hidden" name="news_id" value="<?= $newsrow['info']->id; ?>"/>
                    	<input type="submit" class="btn btn-info" value="Update News" name="update_news" <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');" ></td>
					</tr>
				</tbody>
			</table>
	
     </form>           
            
	</div>
	</div>
</div>






